// @ts-ignore
import { request } from '@/request/request';
import {date} from "@/uni_modules/uv-ui-tools/libs/function/test";

/**
 * 获取banner.
 * @param data
 */
export const getBanner = (data: any): Promise<any> => {
    return request({ url: '/cms/banner', data, method: 'GET' })
}

/**
 * 协议.
 * @param protocolType
 */
export const getProtocolDesc = (protocolType:string): Promise<any> => {
    return request({ url: `/cms/getProtocolDesc/${protocolType}`, data:{}, method: 'GET' })
}

/**
 * 关于我们.
 */
export const getAboutUs = () => {
    return request({ url: `/cms/aboutUs`, data:{}, method: 'GET' })
}

/**
 * 系统配置.
 */
export const getSystemConf = (): Promise<any> => {
    return request({ url: `/cms/getSystemConf`, data:{}, method: 'GET' })
}


/**
 * 获取公告.
 * @param data
 */
export const getNotice = (data:any): Promise<any> => {
    return request({ url: '/cms/notice', data, method: 'GET' })
}


/**
 * 首页科室列表分类.
 * @param data
 */
export const getHomeDepartments = (data:any): Promise<any> => {
    return request({ url: '/cms/getHomeDepartments', data, method: 'GET' })
}

/**
 * 科室列表.
 * @param data
 */
export const getDepartments = (data: any): Promise<any> => {
    return request({ url: '/cms/getDepartments', data, method: 'GET' })
}
